import { useStorage } from '@vueuse/core'

export function useAuthStore() {
  const Token = useStorage('Token', '')
  const setToken = (newToken: string) => {
    Token.value = newToken
  }
  const removeToken = () => {
    Token.value = ''
  }
  return {
    Token,
    setToken,
    removeToken,
  }
}
